
<template>
  <div class="recommend">
    <div v-for="item in recommend" :key="item.title" class="recommend-item">
      <a :href="item.link">
        <img :src="item.image" alt />
        <div>{{item.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: 'RecommendView',
  props: {
    recommend: {
      type: Array,
      default () {
        return []
      }
    }
  }
}
</script>

<style scoped>
.recommend {
  padding-bottom: 20px;
  width: 100%;
  font-size: 14px;
  display: flex;
  text-align: center;
  border-bottom: 6px solid #eee;
}
.recommend-item {
  flex: 1;
}
.recommend-item img {
  margin: 2px 0;
  width: 70px;
  height: 70px;
}
</style>
